package com.xm.zhEnHelper.dto;

import cn.hutool.core.util.StrUtil;
import lombok.Data;

/**
 * 字段信息传输对象
 */
@Data
public class ColumDTO {

    private String fieldName;

    private String fieldType;

    private String allowNull;

    private String fieldKey;

    public boolean isPrimaryKey() {
        return StrUtil.equalsIgnoreCase(this.fieldKey, "PRI");
    }
}
